package com.scheduled.demo.util;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @description:
 * @author: chenjianshuo
 * @create: 2019-09-04 16:24
 **/

public class DateUtil {

    public static String getCurrDateStr(String pattern) {
        LocalDateTime now = LocalDateTime.now();
        return now.format(DateTimeFormatter.ofPattern(pattern));
    }
}
